﻿
@{
    ViewBag.Title = "AuthorityNotice";
    Layout = null;
    var _serverAppID = SuperiorCommon.ConfigSettings.Instance.ServerAppID;
    var _redirect_uri = SuperiorCommon.ConfigSettings.Instance.ServeAuthRedirectUri;
    var _pre_auth_code = Redis.RedisManager.Get<string>("Pre_auth_code") == null ? "" : Redis.RedisManager.Get<string>("Pre_auth_code").ToString();
}

<div>
    <h2>一键授权</h2>
    <a id="jump" href="https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid=@(_serverAppID)&pre_auth_code=@(_pre_auth_code)&redirect_uri=@(_redirect_uri)"><img src="/Images/icon_button3_1.png" /> </a>
</div>
<script src="~/scripts/jquery-1.10.2.js"></script>
<script>
setInterval(function(){
    location.reload();
},3000);
    var code = '@_pre_auth_code';
    $("#jump").click(function() {
        if (code == "") {
            alert("请等待微信推送Ticket");
            return false;
        }
    })
</script>

